package me.principality.dapp.controller

import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/api/data")
class DataController {
    @RequestMapping("", method = arrayOf(RequestMethod.GET))
    fun index(): Map<String, Any> {
        val resultMap = HashMap<String, Any>()

        resultMap["status"] = true
        resultMap["msg"] = "success"
        return resultMap
    }
}